# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=dvd+rw-tools
pkgver=7.1
pkgrel=1
pkgdesc="DVD and Blu-ray burning tools"
url="http://fy.chalmers.se/~appro/linux/DVD+RW/"
arch="all"
license="GPL"
depends="cdrkit"
makedepends="m4 linux-headers"
subpackages="$pkgname-doc"
source="http://fy.chalmers.se/~appro/linux/DVD+RW/tools/$pkgname-$pkgver.tar.gz
	fix-sysmacros-header.patch
	transport.hxx.patch"

build() {
	make
}

package() {
  	install -m755 -d "$pkgdir/usr/bin"
  	install -m755 -d "$pkgdir/usr/share/man/man1"
  	install -m755 growisofs dvd+rw-booktype dvd+rw-format \
		dvd+rw-mediainfo dvd-ram-control "$pkgdir/usr/bin/"
  	install -m644 growisofs.1 $pkgdir/usr/share/man/man1/growisofs.1
}

sha512sums="938f9ec5597158af275c7bf63002696ba362f6f22a219108c6a1df28792f0485046a7af5ce57e41695aaaa0d69543bd66cbbeb4415df5c0e0a902a3f1d278a31  dvd+rw-tools-7.1.tar.gz
c3ca41eeac3c50a3c662d358b2e7c5f406b6d946720efad18af5feb26a214c80044c2f529491c51a0b07fb421fcaff45980d038cd7b26d8b8f06a21863c04c3f  fix-sysmacros-header.patch
9929fa03fd8a6c9b9ad724d1d0de77a602558bb75691148c7a9562f95b5379149fc39ab66a151c10fbe15e18c75b0ecd2d51f7c0499ced3c2e88a54330c44067  transport.hxx.patch"
